package com.lyf.lottery.model.vo;

import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.lyf.common.serialize.DeserializeToDate;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.Length;
import javax.validation.constraints.NotBlank;


import javax.validation.constraints.NotNull;

/**
 OptActivity修改VO
 * @author lyf
 **/
@Data
@ApiModel(description = "_request")
public class OptActivityUpdateVo {


	@NotNull(message = "id不能为空")
	@ApiModelProperty(value = "id",required = true)
	private Integer id;

	@Length(max= 50,message="活动名称长度不能超过50")
	@ApiModelProperty("活动名称")
	private String name;

	@ApiModelProperty("开始时间")
	@JsonDeserialize(using = DeserializeToDate.class)
	private java.util.Date startTime;

	@ApiModelProperty("结束时间")
	@JsonDeserialize(using = DeserializeToDate.class)
	private java.util.Date endTime;

	@ApiModelProperty("默认抽奖次数")
	private Integer defaultPumpNum;

	@ApiModelProperty("抽奖次数是否累加")
	private Integer accumulateFlag;

	@ApiModelProperty("每次抽奖积分消耗")
	private Integer integralConsume;

	@ApiModelProperty("活动状态 0已下架 1已上架 -1 未上架")
	private Integer status;

	@ApiModelProperty("盲盒数量")
	private Integer blindBoxNum;

	@ApiModelProperty("创建时间")
	private java.util.Date createTime;

	@ApiModelProperty("修改时间")
	private java.util.Date updateTime;

	@ApiModelProperty("用户总抽奖次数上限")
	private Integer totalPumpNum;


}



